<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>select元素</title>
  </head>
  <body>
    <form action="#" method="post">
      <label for="sex">性别:</label>
      <select name="sex" id="sex">
        <option value="male">男</option>
        <option value="female">女</option>
      </select>
      <br />
      <label for="course">课程</label>
      <select name="" id="course" multiple size="2">
          <!-- 可多选，一次显示两个选项 -->
        <option value="语文">语文</option>
        <option value="数学">数学</option>
        <option value="英语">英语</option>
        <option value="计算机">计算机</option>
      </select>
    </form>
  </body>
</html>
